import service from '../untils/reqult'

export function getmenu() {
    return service({
        url: '/system/menu/list',
        method: 'get',
    })
}
export function deleteMenu(id) {
    return service({
        url: '/system/menu/delete?id='+id,
        method: 'get',
    })
}

export function addMenu(data) {
    return service({
        url: '/system/menu/create',
        method: 'post',
        data:data
    })
}

export function editMenu(data) {
    return service({
        url: '/system/menu/update',
        method: 'post',
        data:data
    })
}
export default { getmenu,deleteMenu,addMenu,editMenu}